<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:th="http://www.thymeleaf.org">
<head>
<title>商家发货</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">
<link rel="stylesheet" href="lib/weui.min.css">
<link rel="stylesheet" href="css/jquery-weui.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body ontouchstart>
<!--主体-->
<header class="wy-header">
  <div class="wy-header-icon-back" onclick="back();"><span></span></div>
  <div class="wy-header-title">发货填单</div>
</header>
<div class="weui-content">
  <div class="weui-cells cardlist">
    <span th:if="${addressList.size()>0}">
    <div th:each="add:${addressList}">
    <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>收货人：</p></div>
      <span><div class="weui-cell__ft" th:text="${add.consignee}"></div></span>
    </a>
    <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>联系电话:</p></div>
      <span><div class="weui-cell__ft" th:text="${add.phone}"></div></span>
    </a>
    </div>
       <div class="weui-btn-area" th:each="orderList:${orderList}">
         <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>收货地址：</p></div>
      <span><div class="weui-cell__ft" th:text="${orderList.address}"></div></span>
    </a>
     <a th:href="@{/fahuosuccess.htm(orderId=${orderList.orderId})}" class="weui-btn weui-btn_plain-default" style="color: red;">确认发货</a>
  </div>
      </span>
    <span th:if="${addressList.size()==0}">
      <div>
    <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>收货人：</p></div>
      <span><div class="weui-cell__ft"> 订单异常，买家未填写收货人信息！</div></span>
    </a>
    <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>联系电话:</p></div>
      <span><div class="weui-cell__ft">订单异常，买家未填写收货人电话！</div></span>
    </a>
    </div>
       <a class="weui-cell weui-cell_access card-opt" href="#">
      <div class="weui-cell__bd"><p>收获地址:</p></div>
      <span><div class="weui-cell__ft"  >订单异常，买家未填写地址！</div></span>
    </a>
  <div class="weui-btn-area">
    <input type="button" value="确认发货"  id="fahuo"/>
  </div>
    </span>

  </div>
  </div>


<script src="lib/jquery-2.1.4.js"></script> 
<script src="lib/fastclick.js"></script> 
<script type="text/javascript" src="js/jquery.Spinner.js"></script>
<script>
  $(function() {
    FastClick.attach(document.body);
  });
</script>

<script src="js/jquery-weui.js"></script>
<script>
$(document).on("click", ".card-opt", function() {
        $.actions({
          actions: [
            {
              text: "删除",
              className: 'bg-danger',
            }
          ]
        });
      });
function back() {
    history.back();
}


$(function () {
    $("#fahuo").click(function () {
        alert("发货信息不全无法发货！");
        return;
    })
})


</script>
</body>
</html>
